Release 10.1A: OpenEdge Getting Started:
New and Revised Features
Additional details about the LOAD-RESULT-INTO technique
The new
LOAD-RESULT-INTOtemp-table approach balances some of the characteristics of the two previous approaches, enabling its functionality to also be extended. TheLOAD-RESULT-INTOtechnique maintains some separation between the data and the foreign data source, allowing you to process the result sets quite independent of its database origin. Also, the result set definition is not contained within the schema holder. And, of key importance to users interested in the full data mapping to temp-tables, this technique easily bridges you to the Progress ProDataSets technology, as temp-tables are the data source for ProDataSets.Figure 2–5 maps the functionality previously described for
proc-text-bufferto native view retrieval methods into theLOAD-RESULT-INTOtechnique.
Figure 2–5: Load-result-into technique example
Unlike the
proc-text-bufferand the native view techniques, the stored procedure result sets are processed within the context of theRUN STORED-PROCstatement. Also, unlike theproc-text-buffer, the results are accessible as individual columns. And, unlike native views, there are no dependencies on the foreign data source. TheFOR EACHblock that follows the stored procedure execution simply iterates through a result set that was already established by the temp tabletthndl. Thetthndlis both dynamic and unprepared when used by thisRUN STORED-PROCstatement, but all the temp table states—static and dynamic, prepared and unprepared—are usable in theLOAD-RESULT-INTOphrase.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |